package com.gruopbuying.agent.service.impl;

import com.gruopbuying.agent.dao.RoleDao;
import com.gruopbuying.agent.domain.RoleDO;
import com.gruopbuying.agent.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleDao roleMapper;


    @Override
    public List<Long> roleIdsByUserId(Long userId) {
        return roleMapper.roleIdsByUserId(userId);
    }

    @Override
    public RoleDO get(Long id) {
        RoleDO roleDO = roleMapper.get(id);
        return roleDO;
    }


}
